package com.dxl.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author dxl
 * @date 2020/11/7 17:56
 */
@Getter
public enum SexEnum {
    MALE(1,"男"),
    FEMALE(2,"女");
    @JsonValue
    @EnumValue
    private final Integer value;
    private final String desc;

    SexEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
